<?php 
/*
 * @Author: 李诗韵 11366530+li-shiyun-shihan@user.noreply.gitee.com
 * @Date: 2022-08-20 10:56:03
 * @LastEditors: 李诗韵 11366530+li-shiyun-shihan@user.noreply.gitee.com
 * @LastEditTime: 2022-08-20 17:40:11
 * @FilePath: \前端开发c:\phpStudy\WWW\item\lin\server\orderAdd.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
header("content-type:text/html;charset=utf-8");
$conn = mysql_connect("localhost","root","root");
$com =  mysql_select_db("library");
 $did = $_POST["did"];
 $username = $_POST["username"];
 $email = $_POST["email"];
 $address = $_POST["address"];
 $phone= $_POST["phone"];
 $sql = "select * from orderinfo inner join userinfo where orderinfo.did = userinfo.uid and insert into orderinfo  value (null, '${did}','${username}','${email}','${address}','${phone}')";
 mysql_query($sql);
 print_r("添加成功!");
 ?>
 